﻿package com.dykj.platform.framework.exception;

/**
 * @Title: DYKJ Platform
 * @Description: 数据库处理异常
 * @Copyright: Copyright (c) 2008
 * @Company: DYKJ
 * @author jit@dykj.cn
 * @version 1.0
 */
public class DatabaseException extends Exception {

	private static final long serialVersionUID = 201994691714862892L;

	public DatabaseException() {
		super();
	}

	public DatabaseException(String msg) {
		super(msg);
	}

	public DatabaseException(Exception root) {
		super(root.getCause() != null ? root.getCause().getMessage() : root
				.getMessage(), root);
	}

	public DatabaseException(String msg, Exception root) {
		super(root.getCause().getMessage() + msg, root);
	}

}
